<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set image artifact</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagick.setimagealphachannel.html">Imagick::setImageAlphaChannel</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagick.setimagebackgroundcolor.html">Imagick::setImageBackgroundColor</a></div>
 <div class="up"><a href="class.imagick.html">Imagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="imagick.setimageartifact" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::setImageArtifact</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">Imagick::setImageArtifact</span> &mdash; <span class="dc-title">Set image artifact</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.setimageartifact-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>Imagick::setImageArtifact</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$artifact</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>
   )</div>

  <p class="para rdfs-comment">
   Associates an artifact with the image. The difference between image properties and 
   image artifacts is that properties are public and artifacts are private.
   此方法在Imagick基于ImageMagick 6.5.7以上版本编译时可用。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.setimageartifact-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">artifact</code></em></dt>

     <dd>

      <p class="para">
       The name of the artifact
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">value</code></em></dt>

     <dd>

      <p class="para">
       The value of the artifact
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagick.setimageartifact-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-imagick.setimageartifact-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   错误时抛出 ImagickException。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-imagick.setimageartifact-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="imagick.getimageartifact.html" class="function" rel="rdfs-seeAlso">Imagick::getImageArtifact()</a> - Get image artifact</span></li>
    <li class="member"><span class="function"><a href="imagick.deleteimageartifact.html" class="function" rel="rdfs-seeAlso">Imagick::deleteImageArtifact()</a> - Delete image artifact</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagick.setimagealphachannel.html">Imagick::setImageAlphaChannel</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagick.setimagebackgroundcolor.html">Imagick::setImageBackgroundColor</a></div>
 <div class="up"><a href="class.imagick.html">Imagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
